package com.example.feign.ProductFeignClient;


import com.example.feign.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 服务地址
 */
@FeignClient(value = "PRODUCT-DATA-SERVICE",fallback = ProductClientFeignHystrix.class)
public interface ProductFeignClient {

    /**
     * 服务参数
     * @return
     */
    @GetMapping("/products")
    public List<Product>listProducts();
}
